package cn.ncu.wechat.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

/**
 * 小程序配置草稿表
 * @TableName miniapp_config_draft
 */
@TableName(value ="miniapp_config_draft")
public class MiniappConfigDraft {
    /**
     * 
     */
    @TableId
    private Integer draftId;

    /**
     * 
     */
    private Float versionNumber;

    /**
     * 
     */
    private Object configInfo;



    /**
     * 
     */
    public Integer getDraftId() {
        return draftId;
    }

    /**
     * 
     */
    public void setDraftId(Integer draftId) {
        this.draftId = draftId;
    }

    /**
     * 
     */
    public Float getVersionNumber() {
        return versionNumber;
    }

    /**
     * 
     */
    public void setVersionNumber(Float versionNumber) {
        this.versionNumber = versionNumber;
    }

    /**
     * 
     */
    public Object getConfigInfo() {
        return configInfo;
    }

    /**
     * 
     */
    public void setConfigInfo(Object configInfo) {
        this.configInfo = configInfo;
    }

    /**
     * 
     */


    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MiniappConfigDraft other = (MiniappConfigDraft) that;
        return (this.getDraftId() == null ? other.getDraftId() == null : this.getDraftId().equals(other.getDraftId()))
            && (this.getVersionNumber() == null ? other.getVersionNumber() == null : this.getVersionNumber().equals(other.getVersionNumber()))
            && (this.getConfigInfo() == null ? other.getConfigInfo() == null : this.getConfigInfo().equals(other.getConfigInfo()));
}

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDraftId() == null) ? 0 : getDraftId().hashCode());
        result = prime * result + ((getVersionNumber() == null) ? 0 : getVersionNumber().hashCode());
        result = prime * result + ((getConfigInfo() == null) ? 0 : getConfigInfo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", draftId=").append(draftId);
        sb.append(", versionNumber=").append(versionNumber);
        sb.append(", configInfo=").append(configInfo);
        sb.append("]");
        return sb.toString();
    }
}